project(prenstar)

# Just to get the minimal needed for us:
#   -> import extensions available.
#   -> translate imported file to PLY format.

include_directories("." ${PYTHON_INCLUDE_DIR})

add_definitions(-DOUTPUT_MODULE=${PROJECT_NAME})

file(GLOB HEADER "*.h" "*.hpp" "../common/*.h" "../common/*.hpp")
file(GLOB SOURCE "*.cpp" "../common/*.cpp")
add_library(${PROJECT_NAME} SHARED ${HEADER} ${SOURCE})
target_link_libraries(${PROJECT_NAME} assimp ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
# This will output "${PROJECT_NAME}.so" instead of "lib${PROJECT_NAME}.so"
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")

add_test_directory(test)
